<div class="breadcrumbs">
    <div class="container-fluid">
        <ul class="bread pull-left">
            <li><a href="#">Settings</a></li>
            <li class="active"><a href="#">Mata Kuliah</a></li>
        </ul>
    </div>
</div>
<div class="row-fluid">
    <div class="span12">
        <div class="box">
            <div class="box-head">
                <h3>Pengaturan Mata Kuliah Per Semester</h3>
                <div class="actions">
                    <ul>
                        <li>
                            <a href="{$config->site_url('pengaturan/makul/add_group_process')}" class='btn btn-large btn-square tip' title="Tambah Data">
                                <img src="{$BASEURL}resource/doc/images/icon/add-icon.png" alt="" height="20">&nbsp;
                                <b>TAMBAH GROUP</b>
                            </a>
                        </li>
                    </ul>	
                </div>
            </div>
            <div class="box-content box-nomargin">
                <!-- notification template -->
                {include file="base/templates/notification.html"}
                <!-- end of notification template-->
                <table class='table table-striped dataTable table-bordered'>
                    <thead>
                        <tr>
                            <th width="5%"><b>No.</b></th>
                            <th width="10%"><b>Tahun</b></th>
                            <th width="10%"><b>Semester</b></th>
                            <th width="10%"><b>Status</b></th>
                            <th width="10%"></th>
                        </tr>
                    </thead>
                    <tbody>
                        {$no=0}
                        {foreach from=$rs_id item=result}
                        {$no=$no+1}
                        <tr>
                            <td style="text-align: center;">{$no}.</td>
                            <td style="text-align: center;">{$result.tahun|default:''}</td>
                            <td style="text-align: center;">{$result.semester|default:''}</td>
                            <td style="text-align: center;">
                                {if $result.tahun==$rs_tahunajar.tahun && $result.semester==$rs_tahunajar.semester}AKTIF{else}NON-AKTIF{/if}
                            </td>
                            <td style="text-align: center;">
                                <a href="{$config->site_url('pengaturan/makul/edit_group')}/{$result.set_makul_kd|default:''}" class='btn btn-square tip' title="Pengaturan">
                                    <img src="{$BASEURL}resource/doc/images/icon/edit-icon.png" alt="" height="15">
                                    &nbsp;Pengaturan
                                </a>
                            </td>
                        </tr>
                        {foreachelse}
                        <tr>
                            <td colspan="5">Data tidak ditemukan !</td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>